package com.chinaisafe.user.entity;

import java.io.Serial;
import com.chinaisafe.user.vo.request.SysTenantAppReqVO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaisafe.base.mybatisplus.entity.BaseEntity;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * SysTenantApp
 * Description：租户和应用实体类
 *
 * @author tby
 * @date  2024-07-12 10:04:27
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_tenant_app")
@Schema(name = "SysTenantApp", description = "租户和应用")
public class SysTenantApp extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "应用_id")
    @TableField("sys_app_id")
    private Long sysAppId;

    @Schema(description = "别名")
    @TableField("alias")
    private String alias;

    @Schema(description = "租期")
    @TableField("tenancy_date")
    private LocalDate tenancyDate;

    @Schema(description = "排序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "是否上架")
    @TableField("shelf")
    private Boolean shelf;

    @Schema(description = "是否集成")
    @TableField("integration")
    private Boolean integration;
}
